import request from '@/utils/request'

export function selectRolePage(data) {
  return request({
    url: '/role/selectRolePage',
    method: 'get',
    params: data
  })
}

export function insertRole(data) {
  return request({
    url: '/role/insertRole',
    method: 'post',
    params: data
  })
}

export function updateRole(data) {
  return request({
    url: '/role/updateRole',
    method: 'put',
    params: data
  })
}

export function deleteRole(data) {
  return request({
    url: '/role/deleteRole',
    method: 'delete',
    params: data
  })
}

export function validRolename(data) {
  return request({
    url: '/role/validRolename',
    method: 'post',
    params: data
  })
}

export function pickUpRoles(data) {
  return request({
    url: '/role/pickUpRoles',
    method: 'post',
    params: data
  })
}

export function putDownRoles(data) {
  return request({
    url: '/role/putDownRoles',
    method: 'delete',
    params: data
  })
}
